package com.sf.dlb.jpa.model;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 用户信息Entity
 *
 * Created by jing.tan on 2018/12/10.
 */
@Entity
@Table(name="user_info")
public class UserInfo extends BaseEntity{
//      `user_id` varchar(64) DEFAULT NULL COMMENT '用户ID',
//            `mobile` varchar(64) DEFAULT NULL COMMENT '手机号码',
//            `mobile_mac` varchar(50) DEFAULT NULL COMMENT '手机mac地址',
//            `qr_code` varchar(64) DEFAULT NULL COMMENT '二维码(邀请码)',
//            `qr_code_path` varchar(200) DEFAULT NULL COMMENT '二维码路径',
//            `name` varchar(100) DEFAULT NULL COMMENT '姓名(昵称)',
//            `sex` char(1) DEFAULT NULL COMMENT '性别(1:男，２：女)',
//            `birthday_date` datetime DEFAULT NULL COMMENT '出生年月日(YYYY-MM-DD)',
//            `login_password` varchar(100) DEFAULT NULL COMMENT '登录密码',
//            `pay_password` varchar(100) DEFAULT NULL COMMENT '支付密码',
//            `email` varchar(100) DEFAULT NULL COMMENT '邮箱',
//            `address` varchar(200) DEFAULT NULL COMMENT '地址',
//            `user_grade` varchar(64) DEFAULT '0' COMMENT '用户等级(关联等级信息表)',
//            `grade_validity_time` datetime DEFAULT NULL COMMENT '等级有效期',
//            `user_profiles` varchar(255) DEFAULT NULL COMMENT '用户简介',
//            `photo` varchar(1000) DEFAULT NULL COMMENT '用户头像',
//            `token` varchar(64) DEFAULT NULL COMMENT '授权认证',
//            `token_time` datetime DEFAULT NULL COMMENT '授权认证时间',
//            `last_ip` varchar(100) DEFAULT NULL COMMENT '最后登陆IP',
//            `last_date` datetime DEFAULT NULL COMMENT '最后登陆时间',
//            `login_flag` char(1) DEFAULT '0' COMMENT '是否可登录(0:是)',
//            `device_number` varchar(128) DEFAULT NULL COMMENT '设备号',

    private static final long serialVersionUID = 1L;
    private String userId;          // 用户ID
    private String mobile;          // 手机号码
    private String mobileMac;        // 手机mac地址
    private String qrCode;          // 二维码
    private String qrCodePath;        // 二维码路径
    private String name;            // 姓名
    private String sex;             // 性别
    private Date birthdayDate;     // 生日
    private String loginPassword;   // 登录密码
    private String payPassword;     // 支付密码
    private String email;           // 邮箱
    private String userGrade;        // 用户等级
    private Date gradeValidityTime;  // 用户等级有效期
    private String userProfiles;     // 用户简介
    private String address;        // 地址
    private String photo;           // 用户头像
    private String token;           // 授权认证
    private Date tokenTime;       // 授权认证时间
    private String lastIp;         // 最后登陆IP
    private Date lastDate;       // 最后登陆时间
    private String loginFlag;      // 是否可登录
    private String deviceNumber;   // 设备号

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMobileMac() {
        return mobileMac;
    }

    public void setMobileMac(String mobileMac) {
        this.mobileMac = mobileMac;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getQrCodePath() {
        return qrCodePath;
    }

    public void setQrCodePath(String qrCodePath) {
        this.qrCodePath = qrCodePath;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthdayDate() {
        return birthdayDate;
    }

    public void setBirthdayDate(Date birthdayDate) {
        this.birthdayDate = birthdayDate;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getLastIp() {
        return lastIp;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    public String getLoginFlag() {
        return loginFlag;
    }

    public void setLoginFlag(String loginFlag) {
        this.loginFlag = loginFlag;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getTokenTime() {
        return tokenTime;
    }

    public void setTokenTime(Date tokenTime) {
        this.tokenTime = tokenTime;
    }

    public String getUserGrade() {
        return userGrade;
    }

    public void setUserGrade(String userGrade) {
        this.userGrade = userGrade;
    }

    public String getUserProfiles() {
        return userProfiles;
    }

    public void setUserProfiles(String userProfiles) {
        this.userProfiles = userProfiles;
    }

    public Date getGradeValidityTime() {
        return gradeValidityTime;
    }

    public void setGradeValidityTime(Date gradeValidityTime) {
        this.gradeValidityTime = gradeValidityTime;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

}